.class Les/cf$a;
.super Ljava/lang/Object;
.source "DiskScanner.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/cf;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/cf;


# direct methods
.method constructor <init>(Les/cf;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/cf$a;->a:Les/cf;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    .line 1
    :try_start_0
    iget-object v0, p0, Les/cf$a;->a:Les/cf;

    invoke-static {v0}, Les/cf;->a(Les/cf;)Ljava/util/concurrent/CyclicBarrier;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/concurrent/CyclicBarrier;->await()I
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/util/concurrent/BrokenBarrierException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 2
    invoke-virtual {v0}, Ljava/util/concurrent/BrokenBarrierException;->printStackTrace()V

    goto :goto_0

    :catch_1
    move-exception v0

    .line 3
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 4
    :goto_0
    iget-object v0, p0, Les/cf$a;->a:Les/cf;

    invoke-static {v0}, Les/cf;->b(Les/cf;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 5
    :try_start_1
    iget-object v0, p0, Les/cf$a;->a:Les/cf;

    invoke-static {v0}, Les/cf;->c(Les/cf;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_1

    .line 6
    :cond_0
    iget-object v0, p0, Les/cf$a;->a:Les/cf;

    invoke-static {v0}, Les/cf;->d(Les/cf;)Ljava/util/concurrent/BlockingQueue;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/concurrent/BlockingQueue;->take()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/io/File;

    .line 7
    iget-object v1, p0, Les/cf$a;->a:Les/cf;

    invoke-static {v1, v0}, Les/cf;->a(Les/cf;Ljava/io/File;)V

    .line 8
    iget-object v0, p0, Les/cf$a;->a:Les/cf;

    invoke-static {v0}, Les/cf;->e(Les/cf;)Ljava/util/concurrent/atomic/AtomicInteger;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_3
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2

    goto :goto_0

    :catch_2
    move-exception v0

    .line 9
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    :catch_3
    move-exception v0

    .line 10
    iget-object v1, p0, Les/cf$a;->a:Les/cf;

    const/4 v2, 0x0

    invoke-static {v1, v2}, Les/cf;->a(Les/cf;Z)Z

    .line 11
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_0

    .line 12
    :cond_1
    :goto_1
    invoke-static {}, Les/cf;->c()Ljava/lang/String;

    move-result-object v0

    const-string v1, "exit the scanner task!"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method
